home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
sandwichcooking.swf
/
scripts
/
DefineButton2_495
/
BUTTONCONDACTION on(release).as
< prev
next >
Wrap
Text File
|
2007-09-27
|
1KB
|
61 lines
on(release){
this.stopDrag();
if(this.hitTest(_root.chr.idrop))
{
i = 0;
while(i < 6)
{
_root.txt["no" + i + "-2"]._visible = false;
i++;
}
if(_root.chr._currentframe == 1)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
this._visible = false;
this._parent.se._visible = true;
}
else if(_root.chr._currentframe == 2)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
}
else if(_root.chr._currentframe == 3)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
}
else if(_root.chr._currentframe == 4)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
}
else if(_root.chr._currentframe == 5)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
}
else if(_root.chr._currentframe == 6)
{
_root.chr.gotoAndStop(8);
this._x = targetX;
this._y = targetY;
}
else
{
this._x = targetX;
this._y = targetY;
}
}
else
{
this._x = targetX;
this._y = targetY;
}
}